package bean.entity;

import bean.interf.User;
import dao.MysqlConfiguration;
import dao.entity.CustomerDaoImpl;

import java.sql.Connection;
import java.sql.Time;

public class Customer implements User {
    private String cid;
    private String name;
    private String pwd;
    private enum gender{
        男,女
    };
    private String c_mail;
    private String c_phone;
    private Time lg_time;
    private boolean status;

    public Customer(String cid,String pwd){
        this.cid=cid;
        this.pwd=pwd;
    }
    public Customer(){}
    @Override
    public void select() {

    }

    @Override
    public void launchComment() {

    }

    @Override
    public void sendFeedback() {

    }

    @Override
    public void updateInfo() {

    }

    @Override
    public boolean logOut(String cname) {
        CustomerDaoImpl cdi=new CustomerDaoImpl();
        int n=cdi.logOut(cname);
        return n==1;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getC_mail() {
        return c_mail;
    }

    public void setC_mail(String c_mail) {
        this.c_mail = c_mail;
    }

    public String getC_phone() {
        return c_phone;
    }

    public void setC_phone(String c_phone) {
        this.c_phone = c_phone;
    }

    public Time getLg_time() {
        return lg_time;
    }

    public void setLg_time(Time lg_time) {
        this.lg_time = lg_time;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
}
